﻿using System;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Printing;
namespace Javavaj.iHunter
{
    /// <summary>
    /// 用来查看文档内容
    /// </summary>
    public interface IViewer : IPlugin
    {
        /// <summary>
        /// 文档类型
        /// </summary>
        string[] DocumentTypes { get; }

        /// <summary>
        /// 创建显示控件
        /// </summary>
        /// <returns>显示控件</returns>
        Control CreateControl();

        /// <summary>
        /// 显示文档
        /// </summary>
        /// <param name="control">用于显示内容的控件</param>
        /// <param name="doc">用于获取文档数据的输入流对象</param>
        void ShowDocument(Control control, string documentType, System.IO.Stream doc);

        void PrintDocument(Graphics g);
    }
}
